import request from '@/utils/request'

export const searchAllAPI = (params) => {
  // 过滤掉可能包含discount字段的参数
  const filteredParams = {
    ...params,
    discount: undefined
  }
  return request({
    url: '/search/all',
    method: 'POST',
    data: filteredParams,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}